<?php
	echo $this->MForm->create('DefinedLanguage', array('id' => 'contentform', 'action' => 'add'));
	echo '<table width="100%" cellpadding="0" cellspacing="0" class="table table-striped">';
	echo '<tr class="success"><td width="120px">Language Key</td> <td><input type="text" id="DefinedLanguageKey" class="form-control success" name="data[DefinedLanguage][key]">
</td></tr>';
	$rows = array();
	foreach ($langs AS $key => $lange) {
		$row = 	array();	
			$row[] = $lange['native'];
			$row[] = $this->MForm->input('DefinedLanguage.value.'.$lange['id'],array(
   				   		'label' => false,'div'=>false,'type'=>'text',
	               ));
		$rows[] = $row;
	}
	echo $this->Html->tableCells($rows);
	echo '</table>';
	
	echo $this->MForm->submit(__('Submit'), array('name' => 'submit'));
	echo $this->MForm->end();
?>
<div class="clear"></div>